package com.demo.animal;

import com.spring.BeanPostProcessor;
import com.spring.annotation.Component;

/**
 * @author chengjy
 * @date 2025/4/8
 */
@Component
public class MyPostHadler implements BeanPostProcessor {
    @Override
    public Object beforeInitializeBean(Object object, String beanName) {
        System.out.println("初始化前："+ beanName);
        return object;
    }

    @Override
    public Object afterInitializeBean(Object object, String beanName) {
        System.out.println("初始化后："+ beanName);
        return object;
    }
}
